using Framework;
using UnityEngine;
public class UIWidgetBase : UIWidget
{
    protected override void OnAwake()
    {
        base.OnAwake();
        if (this.Widget != null)
        {
            var fields = this.Widget.gameObject.GetComponent<GameObjectFields>();
            if (fields != null)
            {
                try
                {
                    InjectFields(fields);
                }
                catch (System.Exception)
                {
                    Debug.LogError("注入变量时出错");
                }
            }
        }
    }
    protected virtual void InjectFields(GameObjectFields value)
    {

    }
}